import Vue from 'vue'
import Vuex from 'vuex'
import persistedState from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    activeMenu:'',
    loginUser:{},
  },
  plugins: [
    persistedState({ storage: window.sessionStorage })
  ],
  mutations: {
    setActiveMenu(state,data){
      state.activeMenu = data;
    }
  },
})
